package com.oracle.service;

import com.oracle.common.FeignGetBoyServiceFallbackFactory;
import com.oracle.vo.Boy;
import com.oracle.vo.Girl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @program: CampusMatching
 * @description:
 * @author: zhaolei
 * @create: 2020-07-25 15:28
 **/
@FeignClient(value = "boymatching",fallbackFactory =FeignGetBoyServiceFallbackFactory.class )
public interface FeignGetBoyService {

    @PostMapping("/Boy/getboy")
    public List getBoy(@RequestBody Girl girl);

}
